package com.niezhiliang.springboot.rabbitmq.customer.service.impl;

import com.niezhiliang.springboot.rabbitmq.common.annotation.MQCutHandler;
import com.niezhiliang.springboot.rabbitmq.customer.consumer.OrderReceiver;
import com.niezhiliang.springboot.rabbitmq.customer.service.OrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author Cody
 * @Description: //TODO
 * @date 2019/4/2 18:31
 */
@Service
public class OrderServiceImpl implements OrderService
{
    @Resource
    private OrderReceiver orderReceiver;
    @MQCutHandler
    @Override
    public void test(String a)
    {
        System.out.println(a);
//        orderReceiver.handler(null);
    }
}
